package com.itany.boot.dao;

import com.itany.boot.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author shixiaojun@itany
 */
public interface UserDao {

    void insertUser(User user);

    void deleteById(Integer id);

    void updateUser(User user);

    User selectById(Integer id);

    List<User> selectAll();

    User selectByUsernameAndPassword(@Param("username") String username, @Param("password") String password);

}
